<?php echo doctype('html5'); ?>
<html lang="en">
	<head>
		<title><?php echo $title; ?> - UME Leave Request</title>
		<?php
		$metas = array(
			array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv'),
			array('name' => 'robots', 'content' => 'no-cache'),
			array('name' => 'robots', 'content' => 'no-cache'),
			array('name' => 'description', 'content' => 'UME Leave Request'),
			array('name' => 'keywords', 'content' => 'leave request, UME leave request, leave request form, UME form leave request'),
			array('name' => 'author', 'content' => 'group 5 of vc 2')
		);
		echo meta($metas);
		?>

		<!-- Le styles -->
		<script language="javascript" src="<?php echo base_url(); ?>bootstrap/js/jquery-1.8.3.js"></script>
		<?php
		echo link_tag("bootstrap/css/bootstrap.css");
		echo link_tag("bootstrap/css/bootstrap-responsive.css");
		echo link_tag("bootstrap/css/style.css");
		echo link_tag("bootstrap/css/inside-style.css");
		echo link_tag("bootstrap/css/my_style.css");
		if (!PNC_Controller::check_session()) {
			echo link_tag("bootstrap/css/login.css");
		}
		?>
		<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		  <script src="../assets/js/html5shiv.js"></script>
		<![endif]-->
	</head>

	<body>

		<div class="container">
			<?php
			if ($this->session->userdata('admin') || $this->session->userdata('gm') || $this->session->userdata('staff') || $this->session->userdata('manager')) {
				$img = array(
					'src' => 'bootstrap/img/logo.png',
					'alt' => 'logo',
					'class' => 'img_logo'
				);
				$UME = 'passerelles numeriques cambodia';
				$lr4UME = 'leave request for UME staff';
				?>
				<div class="masthead"> <!--/* -- header -- */-->
					<div class="row-fluid">
						<div class="span4">
							<?php echo img($img); ?>
						</div>
						<div id="span8" class="span8">
							<span id="txt_pnc" class="txt_pnc">
								<?php echo strtoupper($pnc); ?>
							</span><br />
							<span id="txt_lr" class="txt_pnc">
								<?php // echo strtoupper($lr4pnc); ?>
							</span>
							<div id="span4-logout" class="span4">
								<?php
								if ($this->session->userdata('admin')) {
									$this->load->view("logout/logout_admin");
								} else if ($this->session->userdata('manager')) {
									$this->load->view("logout/logout_manager");
								} else if ($this->session->userdata('gm')) {
									$this->load->view("logout/logout_gm");
								} else if ($this->session->userdata('staff')) {
									$this->load->view("logout/logout_staff");
								} else if ($this->session->userdata('submanager')) {
									$this->load->view("logout/logout_submanager");
								}
								?>
							</div>
						</div> <!-- /* -- /.span8 -- */-->
					</div>	<!--/* -- /.row -- */ -->
					<div class="navbar">
						<div class="navbar-inner">
							<div id="container" class="container">
								<?php
								if ($this->session->userdata('admin')) {
									$this->load->view('incs/menu');
								} else if ($this->session->userdata('manager')) {
									$this->load->view('incs/menu_manager');
								} else if ($this->session->userdata('gm')) {
									$this->load->view("incs/menu_gm");
								} else if ($this->session->userdata("staff")) {
									$this->load->view("incs/menu_staff");
								} else if ($this->session->userdata("submanager")) {
									$this->load->view("incs/menu_submanager");
								}
								?>
							</div>
						</div>
					</div>	<!-- /* -- /.navbar -- */ -->
				</div>	<!-- /* -- /.masthead -- */-->
				<br />
				<?php
			} else {
				?>
				<div class="cleaner"></div>
				<div id="title-head">
					<p id="jumbotron">Welcome to UME Leaving Request</p>
					<hr />
					<br />
				</div>
				<?php
			}
			?>
			<div class="container-fluid"><!-- Content or body -->
				<?php
				if (!$this->uri->segment(2)) {
					$this->load->view('main/login');
				} else {
					$this->load->view($this->uri->segment(1) . '/' . $this->uri->segment(2));
				}
				?>
				<hr/>
				<footer>
					<p>&copy; UME (UNIVERSITY OF MANAGEMENT AND ECONOMICS)</p>
				</footer>
			</div><!--/.fluid-container-->
		</div> <!-- /container -->

	</body>
</html>
